package com.xbongbong.pro.statistic.result.pojo.dto;

import com.xbongbong.pro.statistic.result.pojo.vo.ResultDataSeriesChartVO;
import com.xbongbong.pro.statistic.through.pojo.dto.ThroughDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 饼图pie/环图/地图等 数据信息
 * @author zcp
 * @version v1.0
 * @date 2019/4/23 19:46
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class StatisticResultPieInfoDTO implements Serializable {
    private static final long serialVersionUID = 7396157887570778300L;

    /**
     * echarts的name
     */
    private String name;
    /**
     * 每个图对应的dataSeries
     */
    private List<ResultDataSeriesChartVO> dataSeriesList;
    /**
     * 穿透所需要的参数
     * 注：当该值为null时，代表不需要穿透，即不需要穿透时该值一定要传null
     */
    private ThroughDTO throughDTO;

    public StatisticResultPieInfoDTO(String name, List<ResultDataSeriesChartVO> dataSeriesList, ThroughDTO throughDTO) {
        this.name = name;
        this.dataSeriesList = dataSeriesList;
        this.throughDTO = throughDTO;
    }
}
